package com.olddriver.crm.mapper;

import com.olddriver.crm.domain.Dictionary;
import com.olddriver.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DictionaryMapper {

    int insert(@Param("dictionary") Dictionary dictionary);

    int update(@Param("dictionary") Dictionary dictionary);

    void deleteMenu(Long id);

    void deleteWord(Long id);

    List<Dictionary> getMenu();

    int totalWord(@Param("id") Long id);

    List<Dictionary> getWords(@Param("id") Long id, @Param("qo") QueryObject qo);

    List<Dictionary> getWordsBySn(String sn);
}
